<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<%
	// 身份验证代码
	UserService userSrv = UserServiceFactory.getUserService();
	if(!userSrv.isUserLoggedIn()) {
		response.sendRedirect("login.jsp?err=nologin");
	}
	else if(!userSrv.isUserAdmin()) {
		response.sendRedirect("login.jsp?err=noadmin");
	}
%>